import { RouteProps } from 'react-router-dom';
import React from 'react';
import {
  DashboardOutlined,
} from '@ant-design/icons';
import { IMenuProps } from '@/types';


export const menu: IMenuProps[] = [
  {
    path: '/dashboard', component: '@/pages/dashboard', mate: {
      isMenu: true, icon: <DashboardOutlined />, label: '首页'
    }
  },
  {
    path: '/guide', component: '@/pages/guide', mate: { isMenu: true, icon: <DashboardOutlined />, label: '引导夜' }
  },
  {
    path: '/framer', component: '@/pages/framer-motion', mate: { isMenu: true, icon: <DashboardOutlined />, label: '动画' },
    routes: [
      {
        path: '/framer/motion', component: '@/pages/framer-motion/motion', mate: { isMenu: true, icon: <DashboardOutlined />, label: 'motion' },
      },
      {
        path: '/framer/motion-value', component: '@/pages/framer-motion/motion-value', mate: { isMenu: true, icon: <DashboardOutlined />, label: 'motion-value' },
      },
      {
        path: '/framer/variants', component: '@/pages/framer-motion/variants', mate: { isMenu: true, icon: <DashboardOutlined />, label: 'motion-value' },
      },
      { path: '/framer', redirect: '/framer/motion', },
    ]
  },
  { path: '/', redirect: '/dashboard', },
];


const routes = [
  {
    path: '/login', component: '@/pages/login'
  },
  {
    path: '/', component: '@/layout',
    routes: menu
  },

];

export default routes
// 默认
// 首页，文档，文章列表
// 文章列表，上传头像，首页，文档，日志，

//  权限管理 =》  账号管理 ， 添加，删除，密码，账号id / 权限管理 ， 是否可以上传文件，查看文章，导出表格，写文章，评论，添加账号
// 